package one.stand.service;

import com.alibaba.fastjson.JSON;
import one.stand.OneCrmServiceApplicationTests;
import one.stand.request.FinanceRequest;
import one.stand.request.FollowRecordRequest;
import one.stand.service.FinanceService;
import one.stand.service.FollowRecordService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.TestConfiguration;

/**
 * @author: QIK
 * @CreateDate: 2019/4/21 11:50
 */
@TestConfiguration
public class Follow extends OneCrmServiceApplicationTests {

    @Autowired
    FollowRecordService followRecordService;

    @Autowired
    FinanceService financeService;


    @Test
    public void selectCustomerNum() {
        System.err.println(JSON.toJSON(financeService.selectCustomerNum(new FinanceRequest() {{
            setCId(67L);
            setWhereDate("123465");
            setMyCardId(332);
        }})));

        System.err.println(JSON.toJSON(financeService.selectOrderNum(new FinanceRequest() {{
            setType(1);
            setCId(67L);
            setMyCardId(332);
        }})));

        System.err.println(JSON.toJSON(financeService.selectInteractionNum(new FinanceRequest() {{
            setType(2);
            setCId(67L);
            setMyCardId(332);
        }})));

        System.err.println(JSON.toJSON(financeService.selectDelNum(new FinanceRequest() {{
            setCId(67L);
            setMyCardId(332);
        }})));
    }

}
